package com.zzyang.mybatis.jdbc.cluster;

import org.apache.ibatis.plugin.Invocation;

/**
 * 集群策略
 *
 * @author zhuoziyang
 * @date 2021/4/10 08:52
 */
public interface Cluster {

    /**
     * 执行获取结果
     *
     * @param invocation
     * @return
     * @throws Exception
     */
    Object execute(Invocation invocation) throws Exception;

}
